<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'update.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<h1>修改${st.name }站点</h1>
	<form action="srcon/update">
		站点名称:<input name="name" value="${st.name }" /><br> 站点等级:<select
			name="slevel">
			<option value="${st.slevel }">${st.slevel }</option>
			<c:choose>
				<c:when test="${st.slevel=='A' }">
					<option value="B">&nbsp;&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;</option>
					<option value="C">&nbsp;&nbsp;&nbsp;C&nbsp;&nbsp;&nbsp;</option>
					<option value="D">&nbsp;&nbsp;&nbsp;D&nbsp;&nbsp;&nbsp;</option>
				</c:when>
				<c:when test="${st.slevel=='B' }">
					<option value="A">&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;</option>
					<option value="C">&nbsp;&nbsp;&nbsp;C&nbsp;&nbsp;&nbsp;</option>
					<option value="D">&nbsp;&nbsp;&nbsp;D&nbsp;&nbsp;&nbsp;</option>
				</c:when>
				<c:when test="${st.slevel=='C' }">
					<option value="A">&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;</option>
					<option value="B">&nbsp;&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;</option>
					<option value="D">&nbsp;&nbsp;&nbsp;D&nbsp;&nbsp;&nbsp;</option>
				</c:when>
				<c:when test="${st.slevel=='D' }">
					<option value="A">&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;</option>
					<option value="B">&nbsp;&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;</option>
					<option value="C">&nbsp;&nbsp;&nbsp;C&nbsp;&nbsp;&nbsp;</option>
				</c:when>
			</c:choose>

		</select><br> 所在区域<select name="ar.id">
			<option value="${st.ar.id }">${st.ar.id }${st.ar.name }</option>
			<c:forEach items="${listar }" var="lar">
				<c:if test="${st.ar.id!=lar.id }">
					<option value="${lar.id }">${lar.id }${lar.name }</option>
				</c:if>

			</c:forEach>
		
		</select><br> 
			<input type="hidden" name="id" value="${st.id }"/>
		<input type="submit" value="提交" />
	</form>
</body>
</html>
